from pms.common.views import PostFormula
from user.utils.permission import get_pids_by_rid


class API(PostFormula):

    def handle(self, req):
        return self.success_respond({
            'list': get_pids_by_rid(self.user.rid)
        })
